import request from '@/utils/request'

// 获取区划记录列表
export function getAssessPage (query) {
  return request({
    url: '/enterAssessQh/getAssessPage',
    method: 'get',
    params: query
  })
}

// 根据id获取区划记录信息
export function getById (id) {
  return request({
    url: '/enterAssessQh/getById?faeId='+id,
    method: 'get'
  })
}

// 根据条件获取评估记录
export function getAssessByParam (query) {
  return request({
    url: '/enterAssessQh/getAssessByParam',
    method: 'get',
    params: query
  })
}

// 获取区划记录编号
export function getZoningCode () {
  return request({
    url: '/enterAssessQh/getCode',
    method: 'get'
  })
}
// 查询区划列表 确定评估
export function getAssessEdQhList (params) {
  return request({
    url: '/enterAssessQh/getAssessEdQhList',
    method: 'get',
    params
  })
}
// 单指标风险区划--区划
export function doZoning (data) {
  return request({
    url: '/enterAssessQh/doZoning',
    method: 'post',
    data
  })
}
// 计算区划值 确定评估
export function doZoningEnterAssess (params) {
  return request({
    url: '/enterAssessQh/doZoning',
    method: 'get',
    params
  })
}
// 查询区划列表 概率评估
export function getAssessPdQhList (params) {
  return request({
    url: '/probabilityAssessQh/getAssessPdQhList',
    method: 'get',
    params
  })
}
// 计算区划值 概率评估
export function doZoningProbability (params) {
  return request({
    url: '/probabilityAssessQh/doZoning',
    method: 'get',
    params
  })
}